<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditMovExpTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditMovExpLabel_idMovExp}" for="idMovExp" />
                    <h:inputText id="idMovExp" value="#{movExpController.selected.idMovExp}" title="#{bundle.EditMovExpTitle_idMovExp}" required="true" requiredMessage="#{bundle.EditMovExpRequiredMessage_idMovExp}"/>
                    <h:outputLabel value="#{bundle.EditMovExpLabel_numdocEmitido}" for="numdocEmitido" />
                    <h:inputText id="numdocEmitido" value="#{movExpController.selected.numdocEmitido}" title="#{bundle.EditMovExpTitle_numdocEmitido}" required="true" requiredMessage="#{bundle.EditMovExpRequiredMessage_numdocEmitido}"/>
                    <h:outputLabel value="#{bundle.EditMovExpLabel_folios}" for="folios" />
                    <h:inputText id="folios" value="#{movExpController.selected.folios}" title="#{bundle.EditMovExpTitle_folios}" />
                    <h:outputLabel value="#{bundle.EditMovExpLabel_observacion}" for="observacion" />
                    <h:inputTextarea rows="4" cols="30" id="observacion" value="#{movExpController.selected.observacion}" title="#{bundle.EditMovExpTitle_observacion}" />
                    <h:outputLabel value="#{bundle.EditMovExpLabel_asunto}" for="asunto" />
                    <h:inputText id="asunto" value="#{movExpController.selected.asunto}" title="#{bundle.EditMovExpTitle_asunto}" />
                    <h:outputLabel value="#{bundle.EditMovExpLabel_fecha}" for="fecha" />
                    <h:inputText id="fecha" value="#{movExpController.selected.fecha}" title="#{bundle.EditMovExpTitle_fecha}" >
                        <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.EditMovExpLabel_resMd5}" for="resMd5" />
                    <h:inputText id="resMd5" value="#{movExpController.selected.resMd5}" title="#{bundle.EditMovExpTitle_resMd5}" />
                    <h:outputLabel value="#{bundle.EditMovExpLabel_tipoDocInterno}" for="tipoDocInterno" />
                    <h:selectOneMenu id="tipoDocInterno" value="#{movExpController.selected.tipoDocInterno}" title="#{bundle.EditMovExpTitle_tipoDocInterno}" required="true" requiredMessage="#{bundle.EditMovExpRequiredMessage_tipoDocInterno}">
                        <f:selectItems value="#{tipoDocInternoController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditMovExpLabel_trabajador}" for="trabajador" />
                    <h:selectOneMenu id="trabajador" value="#{movExpController.selected.trabajador}" title="#{bundle.EditMovExpTitle_trabajador}" required="true" requiredMessage="#{bundle.EditMovExpRequiredMessage_trabajador}">
                        <f:selectItems value="#{trabajadorController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditMovExpLabel_expediente}" for="expediente" />
                    <h:selectOneMenu id="expediente" value="#{movExpController.selected.expediente}" title="#{bundle.EditMovExpTitle_expediente}" required="true" requiredMessage="#{bundle.EditMovExpRequiredMessage_expediente}">
                        <f:selectItems value="#{expedienteController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditMovExpLabel_estado}" for="estado" />
                    <h:selectOneMenu id="estado" value="#{movExpController.selected.estado}" title="#{bundle.EditMovExpTitle_estado}" required="true" requiredMessage="#{bundle.EditMovExpRequiredMessage_estado}">
                        <f:selectItems value="#{estadoController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditMovExpLabel_area}" for="area" />
                    <h:selectOneMenu id="area" value="#{movExpController.selected.area}" title="#{bundle.EditMovExpTitle_area}" >
                        <f:selectItems value="#{areaController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditMovExpLabel_area1}" for="area1" />
                    <h:selectOneMenu id="area1" value="#{movExpController.selected.area1}" title="#{bundle.EditMovExpTitle_area1}" required="true" requiredMessage="#{bundle.EditMovExpRequiredMessage_area1}">
                        <f:selectItems value="#{areaController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <h:commandLink action="#{movExpController.update}" value="#{bundle.EditMovExpSaveLink}"/>
                <br />
                <br />
                <h:link outcome="View" value="#{bundle.EditMovExpViewLink}"/>
                <br />
                <h:commandLink action="#{movExpController.prepareList}" value="#{bundle.EditMovExpShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.EditMovExpIndexLink}" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
